﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using TitlePages;
using Chap01 = Chapter01.Chapter;
using Chap02 = Chapter02.Chapter;

namespace Essential
{
    class Program
    {
        private static Foreword foreword = new Foreword();
        private static Thanks thanks = new Thanks();
        private static Catalogue catalogue = new Catalogue();
        private static Chap01 chapter01 = new Chap01();
        private static Chap02 chapter02 = new Chap02();

        static void Main(string[] args)
        {
            CodeListing(Chapter.Two);
        }

        static void CodeListing(Chapter chapter)
        {
            switch (chapter)
            {
                case Chapter.One:
                    chapter01.CodeListing();
                    break;
                case Chapter.Two:
                    chapter02.CodeListing();
                    break;
                case Chapter.There:
                    break;
                default:
                    break;
            }
        }

        enum Chapter
        {
            Foreword,
            Thanks,
            Catalogue,
            One,
            Two,
            There,
            Four
        }
    }
}
